package com.lakeworks.service.impl;

import java.util.List;

import com.lakeworks.common.core.text.Convert;
import com.lakeworks.common.domain.ticket.TktReclaim;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lakeworks.mapper.TktReclaimMapper;
import com.lakeworks.service.ITktReclaimService;

/**
 * 回收单Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class TktReclaimServiceImpl implements ITktReclaimService 
{
    @Autowired
    private TktReclaimMapper tktReclaimMapper;

    /**
     * 查询回收单
     * 
     * @param id 回收单主键
     * @return 回收单
     */
    @Override
    public TktReclaim selectTktReclaimById(Long id)
    {
        return tktReclaimMapper.selectTktReclaimById(id);
    }

    /**
     * 查询回收单列表
     * 
     * @param tktReclaim 回收单
     * @return 回收单
     */
    @Override
    public List<TktReclaim> selectTktReclaimList(TktReclaim tktReclaim)
    {
        return tktReclaimMapper.selectTktReclaimList(tktReclaim);
    }

    /**
     * 新增回收单
     * 
     * @param tktReclaim 回收单
     * @return 结果
     */
    @Override
    public int insertTktReclaim(TktReclaim tktReclaim)
    {
        return tktReclaimMapper.insertTktReclaim(tktReclaim);
    }

    /**
     * 修改回收单
     * 
     * @param tktReclaim 回收单
     * @return 结果
     */
    @Override
    public int updateTktReclaim(TktReclaim tktReclaim)
    {
        return tktReclaimMapper.updateTktReclaim(tktReclaim);
    }

    /**
     * 批量删除回收单
     * 
     * @param ids 需要删除的回收单主键
     * @return 结果
     */
    @Override
    public int deleteTktReclaimByIds(String ids)
    {
        return tktReclaimMapper.deleteTktReclaimByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除回收单信息
     * 
     * @param id 回收单主键
     * @return 结果
     */
    @Override
    public int deleteTktReclaimById(Long id)
    {
        return tktReclaimMapper.deleteTktReclaimById(id);
    }
}
